package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AlertConfigurationMapper;
import com.ruoyi.system.domain.AlertConfiguration;
import com.ruoyi.system.service.IAlertConfigurationService;

/**
 * configurationService业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-18
 */
@Service
public class AlertConfigurationServiceImpl implements IAlertConfigurationService 
{
    @Autowired
    private AlertConfigurationMapper alertConfigurationMapper;

    /**
     * 查询configuration
     * 
     * @param alertId configuration主键
     * @return configuration
     */
    @Override
    public AlertConfiguration selectAlertConfigurationByAlertId(Long alertId)
    {
        return alertConfigurationMapper.selectAlertConfigurationByAlertId(alertId);
    }

    /**
     * 查询configuration列表
     * 
     * @param alertConfiguration configuration
     * @return configuration
     */
    @Override
    public List<AlertConfiguration> selectAlertConfigurationList(AlertConfiguration alertConfiguration)
    {
        return alertConfigurationMapper.selectAlertConfigurationList(alertConfiguration);
    }

    /**
     * 新增configuration
     * 
     * @param alertConfiguration configuration
     * @return 结果
     */
    @Override
    public int insertAlertConfiguration(AlertConfiguration alertConfiguration)
    {
        return alertConfigurationMapper.insertAlertConfiguration(alertConfiguration);
    }

    /**
     * 修改configuration
     * 
     * @param alertConfiguration configuration
     * @return 结果
     */
    @Override
    public int updateAlertConfiguration(AlertConfiguration alertConfiguration)
    {
        return alertConfigurationMapper.updateAlertConfiguration(alertConfiguration);
    }

    /**
     * 批量删除configuration
     * 
     * @param alertIds 需要删除的configuration主键
     * @return 结果
     */
    @Override
    public int deleteAlertConfigurationByAlertIds(Long[] alertIds)
    {
        return alertConfigurationMapper.deleteAlertConfigurationByAlertIds(alertIds);
    }

    /**
     * 删除configuration信息
     * 
     * @param alertId configuration主键
     * @return 结果
     */
    @Override
    public int deleteAlertConfigurationByAlertId(Long alertId)
    {
        return alertConfigurationMapper.deleteAlertConfigurationByAlertId(alertId);
    }
}
